package com.yuyou.tas.report.service;

import com.yuyou.tas.report.vo.req.ExamModelWordReq;
import com.yuyou.tas.report.vo.resp.ExamModelWordResp;
import com.yuyou.tas.service.api.report.entity.ExamModelWord;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.Pagination;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;


public interface IExamModelWordService {
    int deleteByPrimaryKey(Long id);

    int insert(ExamModelWord record);

    ExamModelWord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExamModelWord record);
    
    /**
     * 增加
     * @param record
     * @return
     */
    ResBoolSimpleInfo<String> add(ExamModelWord record);

    void addExamModelWord(ExamModelWordReq examModelWordReq , LoginRedisObj user);

    void updateExamModelWord(ExamModelWordReq examModelWordReq, LoginRedisObj user);

    void changeExamModelWordStatus(Long id , Integer isUse , Long userId);

    Integer selectExamModelWordsCount(Pagination<ExamModelWordResp> queryPgn);

    List<ExamModelWordResp> selectExamModelWords(Pagination<ExamModelWordResp> queryPgn);

    ExamModelWordResp selectExamModelWordById(Long id);
}